package com.sbio.udiapp.util;

import android.app.Activity;
import android.content.Context;
import android.util.DisplayMetrics;

import com.sbio.udiapp.di.ActivityManager;

public class WindowUtil {

    public static int getScreenWidth() {
        Activity currentActivity = ActivityManager.getCurrentActivity();
        DisplayMetrics outMetrics = new DisplayMetrics();
        currentActivity.getWindowManager().getDefaultDisplay().getMetrics(outMetrics);
        return outMetrics.widthPixels;
    }
}
